package com.funny.springcloud.alibaba.controller;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.funny.springcloud.entities.Payment;
import com.funny.springcloud.utils.R;

/**
 * @author FUNNYWUS
 * @date 2020/7/29
 */
public class CustomerBlockHandler {

    public static R handlerException(BlockException exception) {
        return  new R(444,"按照客户自定义的Glogal 全局异常处理 ---- 1",new Payment(2020L,"serial003"));
    }

    public static R handlerException2(BlockException exception) {
        return  new R(444,"按照客户自定义的Glogal 全局异常处理 ---- 2",new Payment(2020L,"serial003"));
    }
}


